/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.app.mockexam.theory.user.entity;

import java.math.BigDecimal;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;
import com.jeesite.modules.app.mockexam.theory.entity.AppExaminateTheory;

/**
 * 理论模拟考试用户记录表Entity
 * @author zpp
 * @version 2020-02-10
 */
@Table(name="t_mockexam_theory_user", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="theory_id", attrName="theoryId", label="理论记录标识"),
		@Column(name="user_id", attrName="userId", label="用户id"),
		@Column(includeEntity=DataEntity.class),
		@Column(name="type", attrName="type", label="类型"),	
		@Column(name="score", attrName="score", label="分数"),
		@Column(name="post_id", attrName="postId", label="岗位"),
	}, orderBy="a.update_date DESC"
)
public class TmockexamTheoryUser extends DataEntity<TmockexamTheoryUser> {
	
	private static final long serialVersionUID = 1L;
	private String theoryId;		// 理论记录标识
	private String userId;		// 用户id
	private Integer type;
	private BigDecimal score;
	private AppExaminateTheory theory=new AppExaminateTheory();
	private String postId;
	
	public String getPostId() {
		return postId;
	}

	public void setPostId(String postId) {
		this.postId = postId;
	}

	public BigDecimal getScore() {
		return score;
	}

	public void setScore(BigDecimal score) {
		this.score = score;
	}

	public AppExaminateTheory getTheory() {
		return theory;
	}

	public void setTheory(AppExaminateTheory theory) {
		this.theory = theory;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public TmockexamTheoryUser() {
		this(null);
	}

	public TmockexamTheoryUser(String id){
		super(id);
	}
	
	@Length(min=0, max=50, message="理论记录标识长度不能超过 50 个字符")
	public String getTheoryId() {
		return theoryId;
	}

	public void setTheoryId(String theoryId) {
		this.theoryId = theoryId;
	}
	
	@Length(min=0, max=50, message="用户id长度不能超过 50 个字符")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
}